package com.chiang.springcloud.enu;

/**
 * Copyright (c) 2021 765819328@qq.com
 * All rights reserved.
 * Created on 2021-09-27
 */
public enum ReturnCode {


    SUCCESS(200, "插入数据成功"), ERROR(400, "查询失败");
    private Integer code;
    private String message;

    ReturnCode(Integer code, String message) {
        this.message = message;
        this.code = code;
    }

    public Integer code() {
        return code;
    }

    public String message() {
        return message;
    }
}
